const routes = [
  {
    path: '/',
    component: () => import('layouts/MainLayout.vue'),
    requireAuth: true,
    redirect: '/measure',
    children: [
      { path: 'measure',
        component: () => import('pages/MapMeasure.vue'),
        meta: {
          title: '测量',
          requiresAuth: true,
        }
      },
      {
        path: 'query',
        component: () => import('pages/Query.vue'),
        meta: {
          title: '查询',
          requiresAuth: true,
        }
      },
      {
        path: 'import',
        component: () => import('pages/Import.vue'),
        meta: {
          title: '导入',
          requiresAuth: true,
        }
      },
      {
        path: 'road',
        component: () => import('pages/Road.vue'),
        meta: {
          title: '路线规划',
          requiresAuth: true,
        }
      },
    ]
  },
  {
    path: '/login',
    component: () => import('pages/Login.vue')
  },


]

export default routes
